package com.itany.nmms.service;

import com.itany.mvc.util.CommonsMultipartFile;
import com.itany.nmms.exception.FileuploadErrorException;
import com.itany.nmms.exception.ProductExistException;
import com.itany.nmms.exception.RequestParameterErrorException;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Author:石小俊
 * @Date:2023/1/5 15:03
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
public interface ProductService {

    /**
     * 添加商品
     * @param name      商品名称
     * @param price     商品单价
     * @param files     商品图片
     * @param typeId    商品类型
     */
    public void addProduct(String name, String price, List<CommonsMultipartFile> files, String typeId, HttpSession session) throws RequestParameterErrorException, ProductExistException, FileuploadErrorException;

}
